package cn.iocoder.yudao.module.reading.dal.dataobject.classes;

import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.time.LocalDateTime;

/**
 * 班级成员 DO
 *
 * @author 芋道源码
 */
@TableName("class_members")
@KeySequence("class_members_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ClassMemberDO extends BaseDO {

    /**
     * 成员关联ID
     */
    @TableId
    private Long id;
    /**
     * 班级ID
     */
    private Long classId;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 角色：teacher-老师，student-学生
     */
    private String role;
    /**
     * 加入时间
     */
    private LocalDateTime joinTime;
    /**
     * 是否活跃成员
     */
    private Boolean isActive;

}
